<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script type="module">
        import Set from './Set.js';
        
        const set = new Set();
        set.add(1);
        console.log(set.values()); // 输出[1]
        console.log(set.has(1)); // 输出 true
        console.log(set.size()); // 输出 1
        set.add(2);
        console.log(set.values()); // 输出[1, 2]
        console.log(set.has(2)); // 输出 true
        console.log(set.size()); // 输出 2
        set.delete(1);
        console.log(set.values()); // 输出[2]
        set.delete(2);
        console.log(set.values()); // 输出[]
    </script>
</body>
</html>